{include file="public_head"}

<script type="text/javascript" src="/static/plupload/plupload.full.min.js"></script>
{include file="public_menu"}
<div class="content_center">
  <div class="main_center">
    <div class="main_left left">
      {include file="public_information_menu"}
    </div>
    <div class="main_right right">
      <div class="order_content">
        <div class="center-return">
          <div class="main_con">
            <div class="title">申请退款</div>
            <div class="tabcon">
              <div id="center">
                <form action="" method="post" id="form">
                  <h4>退款类型</h4>
                  <ul class="tablist1">
                    <li class="cur"><a href="javascript:;">我要退货<span></span></a></li>
                  </ul>
                  <div class="tabcon1">
                    <div class="cur">
                      <h4>快递名称</h4>
                      <input type="text" placeholder="请输入快递名称" class="text" name="tracking" datatype="*" nullmsg="快递名称不能为空">
                      <input type="hidden" name="id" class="text" value="{$order.id}">
                      <h4>快递单号</h4>
                      <input type="text" placeholder="请输入快递单号" class="text" name="tracking_number" datatype="*" nullmsg="快递单号不能为空">
                    </div>
                  </div>
                  <input type="submit" value="提交申请" id="sub">
                </form>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<script>

  // 申请退货
  $(function () {
    $.Tipmsg.r = null;
    $.Tipmsg.p = null;
    $('#form').Validform({
      tiptype: function (msg) {
        layer.msg(msg, {icon: 2});
      },
      tipSweep: true,
      btnSubmit: 'sub',
      // ajax 提交
      ajaxPost: true,
      callback: function (t) {
        if (t.code == 200) {
          layer.msg('退货物流信息填写完毕', {icon: 1});
          setTimeout(function () {
            layer.closeAll('loading');
            // 跳转页面
            location.href = "{:url('shop/member_order/index')}";
          }, 3000);
        } else {
          layer.msg('网络繁忙稍后再试', {icon: 2});
        }

      }
    })
  });
</script>
{include file="public_foot"}
